﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MainService
{
    public class ServiceDetails
    {
        public ServiceDetails()
        {

        }
        public string ServiceType { get; set; }
        public string ServiceDescription { get; set; }
        public string ServiceName { get; set; }
        public List<int> UserId { get; set; }
        public List<string> Questions { get; set; }
        //advance settings of service
        public Boolean AllowDelete { get; set; }
        public Boolean AllowEdit { get; set; }
        public Boolean AllowView { get; set; }
        public Boolean ForbidUsers { get; set; }
        public Boolean LimitedAccess { get; set; }
        public Boolean NotifyUploads { get; set; }
        public Boolean TrackLocation { get; set; }
        public Boolean ViewLookup { get; set; }
        public Boolean ViewHistory { get; set; }
        public Boolean ImprovePerformance { get; set; }
        public Boolean AlterScan { get; set; }
        public Boolean AlterResponse { get; set; }
        //create service
        public Boolean RealTimeOnline { get; set; }
        public Boolean SyncOnlineLater { get; set; }
        public string ScanFromDatabaseName { get; set; }
        public Boolean DuplicateScansvalid { get; set; }
        public Boolean DuplicateScansInValid { get; set; }
        //validation pattern
        //
        public string SaveTodatabase { get; set; }
        public string ScanToTPS { get; set; }


        internal Dictionary<int, string> GetServiceList(int clientId, string hashCode)
        {
            ServiceOperations _srvOps = new ServiceOperations();
            return _srvOps.GetServices(clientId, hashCode);
        }
    }
}